﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Trading.Enquiry.SaleEnquiryChecklist;
using BCDto.Trading.Enquiry.SaleEnquiryChecklist;
using BCEntity.Trading.Enquiry.SaleEnquiryChecklist;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Trading.Enquiry.SaleEnquiryChecklist
{
    /// <summary>
    /// 销售询盘清单
    /// </summary>
    public interface ISaleEnquiryChecklistService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="saleEnquiryChecklistId">销售询盘清单Id</param>
        bool Exists(long saleEnquiryChecklistId);
        /// <summary>
        /// 添加销售询盘清单
        /// </summary>
        /// <param name="requestDto">销售询盘清单信息</param>
        SaleEnquiryChecklistDto Add(SaleEnquiryChecklistRequestDto requestDto);
        /// <summary>
        /// 更新销售询盘清单
        /// </summary>
        /// <param name="putDto">销售询盘清单信息</param>
        SaleEnquiryChecklistDto Update(SaleEnquiryChecklistPutDto putDto);
        /// <summary>
        /// 删除销售询盘清单
        /// </summary>
        /// <param name="saleEnquiryChecklistId">销售询盘清单Id</param>
        bool Delete(long saleEnquiryChecklistId);
        /// <summary>
        /// 删除销售询盘清单
        /// </summary>
        /// <param name="saleEnquiryId">销售询盘单Id</param>
        bool DeleteEnquiry(long saleEnquiryId);
        /// <summary>
        /// 获取销售询盘清单
        /// </summary>
        /// <param name="saleEnquiryChecklistId">销售询盘清单Id</param>
        SaleEnquiryChecklistDto Get(long saleEnquiryChecklistId);
        /// <summary>
        /// 获取销售询盘清单列表
        /// </summary>
        /// <param name="saleEnquiryId">销售询盘单Id</param>
        IEnumerable<SaleEnquiryChecklistDto> GetList(long saleEnquiryId);
        /// <summary>
        /// 获取销售询盘清单分页列表
        /// </summary>
        /// <param name="saleEnquiryId">销售询盘单Id</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">销售询盘清单每页数据条数</param>
        PageableList<SaleEnquiryChecklistDto> Query(long? saleEnquiryId, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}